package com.baizhi.service;

import com.baizhi.dto.LoginDTO;
import com.baizhi.entity.Admin;
import com.baizhi.po.AdminPO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;

/**
 * (Admin)表服务接口
 *
 * @author makejava
 * @since 2021-09-23 19:30:04
 */
public interface AdminService extends IService<Admin> {
    /**
     * 根据有账号密码查询
     */
    HashMap<String, Object> queryByUserNameAndPassword(LoginDTO loginDTO);

    void deleteToken(String token);

    //查询用户信息
    AdminPO query(String token);

}
